package com.github.m6d21.sso.dao.role.dao;

import com.github.m6d21.sso.model.role.entity.Role;
import com.github.m6d21.sso.model.role.qo.RoleQO;
import java.util.List;

/**
 *<p>
 *IRoleDao
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:26:30
 * @since 1.0.0
 */
public interface IRoleDao {

    Role getById(Integer id);

    boolean insertRole(Role role);

    boolean insertSelectiveRole(Role role);

    boolean updateRoleById(Role role);

    boolean updateSelectiveRoleById(Role role);

    List<Role> find(RoleQO roleQO);

    List<Role> query(RoleQO roleQO);

    List<Role> queryForAdmin(RoleQO roleQO);

    boolean deleteById(Integer id);

    boolean deleteByIds(List<Integer> ids);
}
